[Docker] Docker tag


Docker tag

  • With the following command, we create a new image from the old docker tag, and assign it to a new docker tag.
      docker tag ad-website:latest ad-website:1
    
  • After we do this, we get two images referencing the same docker tag, which help us not lose the previous image's version when we create a new image tagged with the same tag(usually latest).
      docker build -t ad-website:latest .
    
#docker






你可能感興趣的文章

學習 Git (6) - 修改 commit 紀錄 part 2: Reset

學習 Git (6) - 修改 commit 紀錄 part 2: Reset

HTTP API 串接

HTTP API 串接

讀書筆記-版本控制使用Git: 合併

讀書筆記-版本控制使用Git: 合併






留言討論